setTimeout(()=>console.log(1),0)  //2 abc 3 4 
async function main(){
    console.log('2')
    await new Promise(resolve=>{
        console.log('abc')
        setTimeout(resolve,0)
    })
    console.log('3')
}
main()
Promise.resolve().then(()=>console.log('4'))

console.log('------------------------------------------------------')

function test1(){
    console.log('test1')
    return 'bbb'
}
async function test(){
    const data = await test1()
    console.log(data,'data')
    console.log('1')
    return '1223'
}
test().then(res=>{
    console.log(res,'res')
})
console.log('2')
console.log('3')

//test1 2 3 bbb 1 1223